// 是否显示万
frappe.db.get_single_value("shezhi", "xianshiwang").then(是否 => {
    // console.log(`是否 👉`, 是否)
    if (是否) {
        const originalGetNumberSystem = frappe.utils.get_number_system
        const chineseNumberSystems = [
            { divisor: 1.0e12, symbol: __("兆", null, "Number system") },
            { divisor: 1.0e8, symbol: __("亿", null, "Number system") },
            { divisor: 1.0e6, symbol: __("百万", null, "Number system") },
            { divisor: 1.0e4, symbol: __("万", null, "Number system") },
        ]

        frappe.utils.get_number_system = function (country) {
            if (["Bangladesh", "India", "Myanmar", "Pakistan"].includes(country) || country == "Nepal") {
                return originalGetNumberSystem.call(this, country)
            } else {
                return chineseNumberSystems
            }
        }
    }
})

// frappe.utils.number_systems = chineseNumberSystems
